/* 青云门修真攻略 - 主样式文件 */

/* 基础重置和变量定义 */
:root {
    /* 青云门主题色彩 */
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --accent-color: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #e0e6ed;
    --text-muted: #a0a8b0;
    
    /* 背景色彩 */
    --bg-primary: #1a1f2e;
    --bg-secondary: #252b3d;
    --bg-card: #2d3748;
    --bg-overlay: rgba(42, 49, 66, 0.95);
    
    /* 边框和阴影 */
    --border-color: #3a4556;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* 渐变效果 */
    --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 添加仙侠风格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffffff" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    /* 占位符样式 */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.version-info {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.version {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.875rem;
}

/* 主要内容区域 */
.main {
    padding: 2rem 0;
}

.section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* 门派概览样式 */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.overview-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
}

.card-header h2,
.card-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    padding: 1.5rem;
}

.sect-stats {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-weight: bold;
}

.difficulty-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.star.active {
    color: var(--accent-color);
}

.rating {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.rating-value {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.rating-max {
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.player-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.type-icon {
    font-size: 1.5rem;
}

.type-name {
    font-weight: 500;
}

/* 技能部分样式 */
.skill-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* PVE和PVP标签样式 */
.pve-tabs,
.pvp-tabs,
.equipment-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pve-tab,
.pvp-tab,
.equipment-tab {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pve-tab:hover,
.pve-tab.active,
.pvp-tab:hover,
.pvp-tab.active,
.equipment-tab:hover,
.equipment-tab.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
}

/* 工具部分样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tool-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tool-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 底部样式 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-categories,
    .pve-tabs,
    .equipment-tabs {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}